import request from '@/utils/request'
const prefix = '/productService/api/Product/'

export function Create(data) {
  return request({
    url: prefix + 'Create',
    method: 'post',
    data
  })
}

export function Update(data) {
  return request({
    url: prefix + 'Update',
    method: 'put',
    data
  })
}

export function Delete(data) {
  return request({
    url: prefix + 'Delete',
    method: 'delete',
    data
  })
}

export function Get(params) {
  return request({
    url: prefix + 'Get',
    method: 'get',
    params
  })
}

export function GetPagedList(params) {
  return request({
    url: prefix + 'GetPagedList',
    method: 'get',
    params
  })
}

